SG Window | IsgPaintSink |
GetFlags Method |
IsgPaintSink Constants Error Codes |
Called to determine what areas of the window should be painted by client code.
Private Function IsgPaintSink_GetFlags() As sgWindow.PaintFlag
GetFlags method should return combination of flags defined in the PaintFlag enumeration:
Constant | Value | Description |
pfClientPaint | 1 | SG Window will call user defined ClientPaint procedure. If pfClientAfterDefault flag is not specified, default window procedure will not be called. |
pfClientAfterDefault | 2 | ClientPaint procedure will be called after default window procedure. |
pfFramePaint | 4 | Call user defined FramePaint procedure. If pfFrameAfterDefault flag is not specified, default window procedure will not be called. |
pfFrameAfterDefault | 8 | FramePaint procedure will be called after default window procedure. |
In the following sample, client code instructs SG Window object not to invoke default window client-area painting (client code will do all client area painting), and that client code want to paint on the frame area after default non-client painting is finished.
Private Function IsgPaintSink_GetFlags() As sgWindow.PaintFlag IsgPaintSink_GetFlags = pfClientPaint + _ pfFramePaint + pfFrameAfterDefault End Function